<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <!--    <meta http-equiv="refresh" content="3;url=./bk/index.html">-->
</head>
<body>

<h1 id="refresh">正在进入，请稍后……还剩3秒</h1>

</body>

<script type="text/javascript">
    var s = document.getElementById('refresh');
    var time = 2; //时间,秒
    function Redirect() {
        window.location = "./home/index.html";
    }

    var i = 0;

    function dis() {
        s.innerHTML = "正在进入，请稍后……还剩" + (time - i) + "秒";
        i++;
    }

    timer = setInterval('dis()', 1000); //显示时间
    timer = setTimeout('Redirect()', time * 1000); //跳转
</script>
</html>
